package com.mbl.base.modular.mall.service;

import com.mbl.base.modular.mall.dto.GoodsAllinone;
import com.mbl.base.modular.mall.entity.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lwj
 * @since 2020-02-27
 */
public interface IGoodsService extends IService<Goods> {

    @Transactional
    boolean create(GoodsAllinone goodsAllinone);

    @Transactional
    boolean update(GoodsAllinone goodsAllinone);

    /**
     * 商品详情查询
     * @param id
     * @return
     */
    Object detail(Integer id);
}
